home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 67 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  902 b 

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: [Q] Inline gives "unresolved" in MSVC (Beginner)
  5. Date: Mon, 01 Jan 1996 15:00:25 GMT
  6. Organization: Netcom
  7. Message-ID: <30e7f6d8.51142080@nntp.ix.netcom.com>
  8. References: <4c7qt1$4lg@news.netvision.net.il>
  9. NNTP-Posting-Host: ix-dc6-02.ix.netcom.com
  10. X-NETCOM-Date: Mon Jan 01  6:59:46 AM PST 1996
  11. X-Newsreader: Forte Agent .99c/16.141
  12.  
  13. Gregory Karpinsky <karpinsk@netvision.net.il> wrote:
  14.  
  15. |>Hi!
  16. |>
  17. |>I've got a method declared in a .hpp and its body - in the
  18. |>corresponding .cpp. Everything works OK until I add the "inline"
  19. |>word to the method. Then I get linker error "unresolved...<my
  20. method>.
  21. |>I'm using MSVC 1.52
  22.  
  23. The definition (i.e., the body) of an inline function must be
  24. available in every compilation unit that uses it.  Put the definition
  25. in the header.
  26.  
  27.  
  28. Michael M Rubenstein
  29.